
import jenkins.model.*;
import hudson.model.*;

//内部变量：提示信息
String message=null
//查看全部构建记录
Jenkins.instance.getAllItems(Job.class).each {job ->
    job.getBuilds().each{
        Run run=it
        if(null==message){
            message="${job.fullName} 构建记录:${run.number}"
        }else{
            message+=",${run.number}"
        }
    }
    if(null!=message){
        println "${message}"
        message=null
    }
}
return
